package models

import "time"

type CustomComponent struct {
	ID string `json:"id" gorm:"primary_key"`
	Name string `form:"name" json:"name"`
	Cate int `form:"cate" json:"cate"`
	Cover string `form:"cover" json:"cover"`
	Describe string `form:"describe" json:"describe"`
	HasVip int `form:"has_vip" json:"has_vip"`
	Price float64 `form:"price" json:"price"`
	Type string `form:"type" json:"type"`
	Ratio float64 `form:"ratio" json:"ratio"`
	IsSlide int `form:"is_slide" json:"is_slide"`
	IsEnabled int `json:"is_enabled"`
	Content string `form:"content" json:"content"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

func (t *CustomComponent) TableName() string {
	return "personal_page_custom_component"
}